package com.itheima.service;

import com.github.pagehelper.Page;
import com.itheima.domain.Student;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface StudentService {
    int add(Student student);
    int update(Student student);
    int delete(Integer id);

    public Page<Student> findAll(Integer page, Integer size);

    Student findById(Integer id);
}
